package com.sf.dlb.jpa.model;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 阅读记录表 Entity
 *
 * Created by jing.tan on 2018/5/21.
 */
@Entity
@Table(name = "new_recod")
public class NewRecodInfo extends BaseEntity {
/*
  `user_id` varchar(255) DEFAULT NULL COMMENT '用户id',
  `new_id` varchar(64) DEFAULT NULL COMMENT '新闻id',
  `class_id` varchar(64) DEFAULT NULL COMMENT '新闻分类id',
  `start_time` datetime DEFAULT NULL COMMENT '阅读开始时间',
  `end_time` datetime DEFAULT NULL COMMENT '阅读结束时间',
  `readTimeLong` bigint(20) DEFAULT NULL COMMENT '阅读时长',
  `get_state` char(1) DEFAULT NULL COMMENT '是否领取dlb(0否，1是)',
  `get_number` decimal(20,3) DEFAULT NULL COMMENT '领取dlb数量',
  */

	private static final long serialVersionUID = 1L;
	private String userId;				// 用户id
	private String newId;				// 新闻id
	private String classId;			// 新闻分类id
	private Date startTime;			// 阅读开始时间
	private Date endTime;			// 阅读结束时间
	private Integer readTimeLong;				// 阅读时长
	private String getState;			// 是否领取dlb
	private Double getNumber;			// 领取dlb数量

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getNewId() {
		return newId;
	}

	public void setNewId(String newId) {
		this.newId = newId;
	}

	public String getClassId() {
		return classId;
	}

	public void setClassId(String classId) {
		this.classId = classId;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Integer getReadTimeLong() {
		return readTimeLong;
	}

	public void setReadTimeLong(Integer readTimeLong) {
		this.readTimeLong = readTimeLong;
	}

	public String getGetState() {
		return getState;
	}

	public void setGetState(String getState) {
		this.getState = getState;
	}

	public Double getGetNumber() {
		return getNumber;
	}

	public void setGetNumber(Double getNumber) {
		this.getNumber = getNumber;
	}


}